package com.chuangmei.com;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.baidu.mapapi.SDKInitializer;
import com.baidu.mapapi.map.MapView;
import com.chuangmei.com.ar.ShowARActivity;
import com.chuangmei.com.map.MapActivity;

public class MainActivity extends BaseActivity implements View.OnClickListener {

    private Button mBT_visit;
    private Button mBT_study;
    private MapView mMV;

    @Override
    public void initEnvironment() {

    }

    @Override
    public void initActivityLayoutID() {
        activityLayoutID = R.layout.activity_main;
    }

    @Override
    public void initView() {
        ((Button) this.findViewById(R.id.mBT_visit)).setOnClickListener(this);
        ((Button) this.findViewById(R.id.mBT_study)).setOnClickListener(this);
    }

    @Override
    public void initData() {
        SDKInitializer.initialize(getApplicationContext());

    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.mBT_visit:
                intent.setClass(this, MapActivity.class);
                startActivity(intent);
                break;
            case R.id.mBT_study:
                intent.setClass(this, ShowARActivity.class);
                startActivity(intent);
                //                finish();
                break;
        }
    }
}
